ExamPlay Light Logo
Pierakstīties

Computer Science for IGCSE & O level - Programming (Section 3 - No. 14)

Which statement most accurately describes the difference between a procedure and a function?
Procedures can't return values; functions always return values.
Functions can't have parameters; procedures can.
Procedures always return values; functions can't.
Procedures are used for input; functions are used for output.

Paskaidrojums

A key distinction is that functions are designed to return a value, while procedures may or may not return values.

komentāri (0)

Piesakieties, lai komentētu
Reklāma
BrainBehindX Inc Logo
©2026; Powered by BrainBehindX Inc